package controller;


public class IOPrinter {
	private static IOPrinter printer = new IOPrinter();
	private IOPrinter()
	{
		
	}
	public static IOPrinter getPrinter()
	{
		return printer;
	}
	public void printNoLine(String s)
	{
		System.out.print(s);;
	}
	public void print(String s)
	{
		System.out.println(s);
	}
	public void printMenuFormat(int counter,String s)
	{
		System.out.printf("%-5d%-20s%n", counter,s);
	}
	public void printProductFormat()
	{
		System.out.printf("%-20s%-10s%-15s%-10s%-10s%-10s%n","Name","Price","Discount Price","Monitor","Camera","Battery");
	}
	public void printProduct(String name,int price,int finalPrice,double size,int cameraPixel,int batterySize)
	{
		System.out.printf("%-20s%-10d%-15d%-10s%-10d%-10d%n",name,price,finalPrice,size,cameraPixel,batterySize);
	}
}
